package com.goodsAdv.model;

import java.sql.Connection;
import java.sql.Timestamp;
import java.util.List;

import com.goods.model.GoodsVO;

public class GoodsAdvService {
	
	private IGoodsAdvDAO dao; 
	
	public GoodsAdvService(){
		dao = new GoodsAdvDAO();
	}
	
	public int insert(GoodsAdvVO goodsAdvVO,Connection conn){
		return dao.insert(goodsAdvVO, conn);
	}

	public List<GoodsAdvVO> update(List<GoodsAdvVO> list_advVO){
		return dao.update(list_advVO);
	}
	
	
	
	public void deleteAdv(Integer goodsAdvOrder){
	}
	
	public GoodsAdvVO findByPrimaryKey(Integer goodsAdvOrder) {
		return dao.findByPrimaryKey(goodsAdvOrder);
	}

	public List<GoodsAdvVO> getAdvVOByClassNo(Integer goodsClassNo){
		return dao.getAdvVOByClassNo(goodsClassNo);
	}
	
	
	public List<GoodsAdvVO> getAll() {
		return dao.getAll();
	}
	
	
	public List<Integer> getImgAdvOrder(Integer goodsClassNo){
		return dao.getImgAdvOrder(goodsClassNo);
	}
	
	
	public String getImgAdvPath_name(String colName,Integer goodsAdvOrder){
		return dao.getImgAdvPath_name(colName, goodsAdvOrder);
	}
	
	public List<Integer> insertAllAdv(List<GoodsAdvVO> list_adv,Connection con){
		return dao.insertAllAdv(list_adv,con);
	}
	
	public List<GoodsAdvVO> getPathWithEndNo(Integer goodsClassNo){
		return dao.getPathWithEndNo(goodsClassNo);
	}
	
}
